var dayjs = require('dayjs')

function sunMoveDistance(){
	let distance = {}
	const time = Number(dayjs().format('HH'))
	// console.log(time, time>=16 && time <= 18)
	if(time>=0 && time <= 6){
		distance= {distanceTop:'-20%',distanceLeft:'-20%'}
	}else if(time>=6 && time <= 8){
		distance= {distanceTop:'19%',distanceLeft:'33%'}
	}else if(time>=9 && time <= 10){
		distance= {distanceTop:'19%',distanceLeft:'18%'}
	}else if(time>=11 && time <= 12){
		distance= {distanceTop:'18%',distanceLeft:'23%'}
	}else if(time>=13 && time <= 15){
		distance= {distanceTop:'19%',distanceLeft:'28%'}
	}else if(time>=16 && time <= 18){
		distance= {distanceTop:'22%',distanceLeft:'73%'}
	}else if(time>=19 && time <= 24){
		distance=  {distanceTop:'-20%',distanceLeft:'-20%'}
	}else{
		distance=  {distanceTop:'-20%',distanceLeft:'-20%'}
	}
	return distance
				
}
// 微信支付
function wxPay(){
	
}
module.exports = {
    sunMoveDistance,
}